<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="cn">
  <head>
    <meta charset="utf-8">
    <title>未来城堡后台管理</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="stylesheet" type="text/css" href="/Public/Common/Css/bootstrap.css" /><link rel="stylesheet" type="text/css" href="/Public/Admin/css/theme.css" />
    <script type="text/javascript" src="/Public/Common/jquery-ui/js/jquery-191.js"></script>
    <script type="text/javascript" src="/Public/Common/jquery-ui/ui/jquery-ui.custom.js"></script>
	<script type="text/javascript" src="/Public/Common/lhgdialog/lhgdialog.min.js"></script><script type="text/javascript" src="/Public/Common/jquery-ui/ui/jquery.ui.core.js"></script><script type="text/javascript" src="/Public/Common/Js/common.js"></script>
     <style type="text/css">
        #line-chart {
            height:300px;
            width:800px;
            margin: 0px auto;
            margin-top: 1em;
        }
        .brand { font-family: georgia, serif; }
        .brand .first {
            color: #ccc;
            font-style: italic;
        }
        .brand .second {
            color: #fff;
            font-weight: bold;
        }
    </style>

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

  </head>

  <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
  <!--[if IE 7 ]> <body class="ie ie7"> <![endif]-->
  <!--[if IE 8 ]> <body class="ie ie8"> <![endif]-->
  <!--[if IE 9 ]> <body class="ie ie9"> <![endif]-->
  <!--[if (gt IE 9)|!(IE)]><!--> 
  <body> 
  <!--<![endif]-->
    
    <div class="navbar">
        <div class="navbar-inner">
            <div class="container-fluid">
                <ul class="nav pull-right">
                    
                     <li id="fat-menu" class="dropdown">
                        <a href="#" id="drop3" role="button" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user"></i> Jack Smith
                            <i class="icon-caret-down"></i>
                        </a>

                        <ul class="dropdown-menu">
                            <li><a tabindex="-1" href="#">Settings</a></li>
                            <li class="divider"></li>
                            <li><a tabindex="-1" href="sign-in.html">Logout</a></li>
                        </ul>
                    </li> 
                    
                </ul>
                <a class="brand" href="index.html"><span class="first"></span> <span class="second"><?php echo ($siteName); ?></span></a>
            </div>
        </div>
    </div>
    <div class="container-fluid">  
    
        <div class="row-fluid">
            <div class="span3">
                <div class="sidebar-nav">
                  <div class="nav-header" data-toggle="collapse" data-target="#dashboard-menu"><i class="icon-dashboard"></i>网站设置</div>
                    <ul id="dashboard-menu" class="nav nav-list collapse in">
                        <li><a href="<?php echo U('Admin/Setting/index',array('type'=>'base'));?>">基本设置</a></li>
                        <li ><a href="<?php echo U('Admin/Banner/index');?>">横幅设置</a></li>
                        <li ><a href="<?php echo U('Admin/Setting/index',array('type'=>'aboutus'));?>">关于网站</a></li>
                        <li ><a href="<?php echo U('Admin/Setting/index',array('type'=>'scope'));?>">业务范围</a></li>
                        <li ><a href="<?php echo U('Admin/Setting/index',array('type'=>'contactus'));?>">联系我们</a></li>
                    </ul>
                <div class="nav-header" data-toggle="collapse" data-target="#accounts-menu"><i class="icon-briefcase"></i>内容管理</div>
                <ul id="accounts-menu" class="nav nav-list collapse in">
                	<li ><a href="<?php echo U('Admin/News/index');?>">新闻管理</a></li>
                	<li ><a href="<?php echo U('Admin/Video/index');?>">视频管理</a></li>
                    <li ><a href="<?php echo U('Admin/Competition/index');?>">比赛管理</a></li>
                </ul>

                <div class="nav-header" data-toggle="collapse" data-target="#settings-menu"><i class="icon-exclamation-sign"></i>成员管理</div>
                <ul id="settings-menu" class="nav nav-list collapse in">
					<li ><a href="<?php echo U('Admin/Member/index');?>">成员管理</a></li>
                </ul>
            </div>
        </div>
        <div class="span9">

    
<script type="text/javascript" src="/Public/Common/validate/jquery.validate.min.js"></script>
<style>
<!--
    .video-text{
		width:350px;
    }
-->
</style>
<div id="content" class="container_16 clearfix">
	<div class="btn-toolbar">
		<a href="<?php echo U('Admin/Member/index');?>" class="btn">成员管理</a>
		<a href="<?php echo U('Admin/Member/edit');?>" class="btn  btn-primary"><i class="icon-plus"></i>添加成员</a>
	</div>
	<br />
	<div class="row-fluid">
		<div class="block span12">
		
			<ul class="nav nav-tabs">
				<li><a
					href="<?php echo U('Admin/Member/edit',array('id'=>$data['uid']));?>">基本资料</a></li>
				<li><a href="<?php echo U('Admin/Member/editPhoto',array('id'=>$data['uid']));?>">相册</a></li>
				<li class="active"><a href="<?php echo U('Admin/Member/editVideo');?>">成员视频</a></li>
			</ul>
			<form action="<?php echo U('Admin/Video/edit',array('id'=>$data['vid']));?>" method="post" class="kdform" id="newsform">
				<ul>
					<li>
						<p>注意：目前只支持上传到优酷的视频</p>
					</li>
					<li><label>标题:</label>
						<input type="text" name="title" value="<?php echo ($data["title"]); ?>" class="video-text" />
						<input type="hidden" name="uid" value="<?php echo ($data["uid"]); ?>" />
						<span class="require-text">*</span>
						<span class="error"></span>
					</li>
					<li>			
						<label>视频播放地址:</label> 
						<input type="text" name="play_url" value="<?php echo ($data["play_url"]); ?>" class="video-text" />
						<span class="require-text">*</span>
						<span class="error"></span>
					</li>					
					<li>			
						<label>视频描述:</label> 
						<textarea name="content" class="editor"><?php echo ($data["description"]); ?></textarea>
						<span class="error"></span>
					</li>
					<li>
						<label><input type="checkbox" name="publish" value="1" checked="checked"/> 发布: <small>如果该选项没有选中,新闻不会发布到前台</small></label>
					</li>
					
					<li>
						<label><input type="checkbox" name="recommend" value="1" checked="checked"/> 推荐: <small>是否显示在前台推荐</small></label>
					</li>					
					<li>
						<input type="button" value="保存" class="btn" id="saveBtn"/>	
					</li>
				</ul>
				
			</form>
		</div>
	</div>
</div>

<script type="text/javascript" src="/Public/Common/kindeditor/kindeditor-min.js"></script><script type="text/javascript" src="/Public/Common/kindeditor/lang/zh_CN.js"></script>
<script>
   KindEditor.ready(function(K) {
        window.editor = K.create('.editor',{
        	uploadJson : "<?php echo U('Home/Public/upload');?>",
        	width : '400px',
        	height: '280px',
        	items:['source','preview','selectall','justifyleft','justifycenter','justifyright','justifyfull','insertorderedlis',
        	       'indent','outdent','formatblock','fontname','fontsize','forecolor','hilitecolor','bold','italic','strikethrough','image','emoticons','link','unlink','baidumap','lineheight'],
        	afterBlur:function(){this.sync();}
        });
    });
</script>
<script>
	$().ready(function() {
		$("#saveBtn").click(function(){
			formsubmit("#newsform");
		})
	});
</script>

        </div>

</div>
<div id="foot">
	<a href="#">Contact Me</a>
</div>
</div>
<script type="text/javascript" src="/Public/Common/Js/bootstrap.min.js"></script>

	</body>
</html>